<%@ Page Language="C#" AutoEventWireup="true" CodeFile="sfcms_imageselect.aspx.cs" Inherits="sfcms_sfcms_imageselect" %>
<%@ Register TagPrefix="SFCMS" TagName="Tree" Src="sfcms_tree.ascx" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script>
        function selectImage(id)
        {
            var img = "<img src=\"/web/sfcms/sfcms_download.aspx?id=" + id + "\" />";
            
            if (parent.prevRangeType == 'Control')
            {
                var ne = parent.document.createElement(img);
                parent.prevRange(0).replaceNode(ne);
            }
            else
            {
                parent.prevRange.pasteHTML(img);
            }
            parent.popupToggle(parent.document.all.image);
            parent.document.all.ewe.focus();    
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
        <SFCMS:Tree ID="sfcmstree" runat="server" />
    </form>
</body>
</html>
